package beerAgent;

import java.util.Arrays;

import beerAgent.BeerModel.Action;

public class BeerMapTest {
	public static void main(String[] args) throws InterruptedException {
		BeerGame map = new BeerGame(1, 6);
		for (int j = 0; j < 1; j++) {

			for (int i = 0; i < 20; i++) {
				
				int random = (int)(Math.random() * 5);
				Action action = Action.STAND_STILL;
				if(random<2) {
					action = Action.MOVE_LEFT;
				}
				else {
					action = Action.MOVE_RIGHT;
				}
				map.move(action, random);
				System.out.println(map);
				System.out.println(Arrays.toString(map.getSensors()));
				System.out.println();
				System.out.println();
				Thread.sleep(50);
			}
			map.reset();
		}
	}
}